package com.zzb.myshowme.view.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.zzb.myshowme.R;

public class LoginActivity extends BaseActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        initView();
    }

    private void initView() {
        ImageView phone_imageView = (ImageView) findViewById(R.id.phone_imageView);
        ImageView facebook_imageView = (ImageView) findViewById(R.id.facebook_imageView);
        ImageView twitter_imageView = (ImageView) findViewById(R.id.twitter_imageView);

        phone_imageView.setOnClickListener(this);
        facebook_imageView.setOnClickListener(this);
        twitter_imageView.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.phone_imageView:
                Intent intent = new Intent(LoginActivity.this, PhoneLoginActivity.class);
                startActivity(intent);
                break;
            case R.id.facebook_imageView:
                break;
            case R.id.twitter_imageView:
                break;
        }
    }

}
